package com.tpc.yaoxpt.main;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class PTModule {
    private StringProperty apiKey;

    public final StringProperty apiKeyProperty(){
        if(apiKey==null){
            apiKey = new SimpleStringProperty("");
        }
        return apiKey;
    }

    public final String getApiKey(){
        return apiKeyProperty().get();
    }

    public final void setApiKey(String apiKey){
        this.apiKeyProperty().set(apiKey);
    }

    private StringProperty secretKey;


    public final StringProperty secretKeyProperty(){
        if(secretKey==null){
            secretKey = new SimpleStringProperty("");
        }
        return secretKey;
    }

    public final String getSecretKey(){
        return secretKeyProperty().get();
    }

    public final void setSecretKey(String secretKey){
        this.secretKeyProperty().set(secretKey);
    }

    private StringProperty entName;

    public final StringProperty entNameProperty(){
        if(entName==null){
            entName = new SimpleStringProperty("");
        }
        return entName;
    }

    public final String getEntName(){
        return entNameProperty().get();
    }

    public final void setEntName(String entName){
        this.entNameProperty().set(entName);
    }


    private StringProperty url;

    public final StringProperty urlProperty(){
        if(url==null){
            url = new SimpleStringProperty("");
        }
        return url;
    }

    public final String getUrl(){
        return urlProperty().get();
    }

    public final void setUrl(String url){
        this.urlProperty().set(url);
    }




}
